package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> findByPage(Integer page, Integer pageSize, String name);

    R deleteCategory(List<Long> ids);

    DishDto findDishDtoById(Long id);

    void updateDishDto(DishDto dishDto);

    List<DishDto> findDishByCategoryId(Dish dish);

    void updateByStatus(Integer status,Long[] ids);
}

